<?php

 
 // is the one accessing this page logged in or not?
 if (!isset($_SESSION['db_is_logged_in']) || $_SESSION['db_is_logged_in'] !== true) {
 
    // Chưa login, chuyển qua trang login
    header('Location: index.php?page=login.php');
    exit;
 }
 
 $username = $_SESSION['username'];
 ?>
 
 